package com.byxy.demo01.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.byxy.demo01.dao.ItemsDao;
import com.byxy.demo01.entity.Items;
import com.byxy.demo01.service.ItemsService;
@Service
@Transactional
public class ItemsServiceImpl implements ItemsService {
	@Autowired
	private ItemsDao itemsDao;
	@Override 
	public void add(Items item) {
		itemsDao.add(item);

	}
	@Override
	public List<Items> list() {
		// TODO Auto-generated method stub
		return itemsDao.list();
	}
}
